/*
 * 项目名称:MySpringMVC
 * 类名称:SysUserDao.java
 * 包名称:com.ly.springMVC.dao
 *
 * 修改履历:
 *      日期                修正者      主要内容
 *      2019-03-22 11:10    apple      初版完成
 *
 * Copyright (c) 2017-2019 咨同科技
 */
package com.ly.springMVC.dao.impl;

import com.ly.springMVC.annotation.ZtRepository;
import com.ly.springMVC.dao.SysUserDao;
import com.ly.springMVC.entity.SysUserEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * SysUserDao
 *
 * @author apple
 */
@ZtRepository
public class SysUserDaoImpl implements SysUserDao {

    @Override
    public void add(SysUserEntity sysUserEntity) {

    }

    @Override
    public void delete(String id) {

    }

    @Override
    public void update(SysUserEntity sysUserEntity) {

    }

    @Override
    public List<SysUserEntity> list() {
        ArrayList<SysUserEntity> sysUserEntities = new ArrayList<>();
        SysUserEntity sysUserEntity1 = new SysUserEntity("张三", "男", 10);
        SysUserEntity sysUserEntity2 = new SysUserEntity("李四", "女", 11);
        SysUserEntity sysUserEntity3 = new SysUserEntity("王二", "女", 12);
        SysUserEntity sysUserEntity4 = new SysUserEntity("麻子", "男", 13);
        sysUserEntities.add(sysUserEntity1);
        sysUserEntities.add(sysUserEntity2);
        sysUserEntities.add(sysUserEntity3);
        sysUserEntities.add(sysUserEntity4);
        return sysUserEntities;
    }
}